#基于的基础镜像
FROM python:3.6
#代码添加到code文件夹
ADD . /usr/src/app
# 设置app文件夹是工作目录
WORKDIR /usr/src/app
# 安装支持
EXPOSE 500
EXPOSE 5000
RUN /usr/local/bin/python -m pip install --upgrade pip
RUN pip install -r requirements.txt
CMD [ "python", "/usr/src/app/run.py" ]
CMD [ "uwsgi", "ini uwsgi.ini" ]
